<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="module">
    //只说明形式

    //分别暴露------------------------------------------
    export let name = 'kk';
    export const k =  'ss';

    import * as m1 from './xxx.js';//通用方式
    import {name,k} from './xxx.js'//解构赋值

    //统一暴露------------------------------------------
    let school = 'ss'
    function fn() {
        ///
    }
    export {school,fn}

    import * as m2 from './xxx.js';
    import {school,fn as guigu} from './xxx.js'//解构赋值 设置别名


    //默认暴露------------------------------------------
    export default {
        name:'p',
        change:function () {
            ///
        }
    }

    import * as m3 from './xxx.js';
    import {default as m3} from './xxx.js'//要设置别名
    import apk from './apk.js'//简便形式



</script>
</body>
</html>